package com.listener.simple;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * <h3>springboot_rabbitmq_listener</h3>
 * <p></p>
 *
 * @author gdw
 * @since 2024-07-22 14:54:17
 */
@Component
public class RabbitMqListener {
    @RabbitListener(queues = "simple.queue")
    public void receive(String message) {
        System.out.println("接收到的信息是:"+message);
    }
}
